@Inject('$http')
class CodeRulesService {
  getWorker(id) {
    return this.$http({
      url: '/api/v1/codeDict/staffCodeRule/get',
      method: 'GET',
      params: id,
    });
  }

  getDevice(id) {
    return this.$http({
      url: '/api/v1/codeDict/deviceCodeRule/get',
      method: 'GET',
      params: id,
    });
  }

}

export default CodeRulesService;
